<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>
	<body>
		<script>
			function formatCount(count) {
				if (count >= 10_0000_0000) {
					count = Math.floor(count / 1_0000_0000) + '亿'
				} else if (count >= 10_0000) {
					count = Math.floor(count / 1_000) + '万'
				}

				return count
			}

			console.log('1221021012 :>> ', formatCount(1221021012))
			console.log('121212121212121212 :>> ', formatCount(121212121212121212))
		</script>
	</body>
</html>
